Component({
    properties: {
        avatar: {
            type: String,
            value: ""
        },
        nickname: {
            type: String,
            value: ""
        },
        time: {
            type: String,
            value: ""
        },
        content: {
            type: String,
            value: ""
        },
        index: {
            type: Number,
            value: 0
        },
        page: {
            type: Number,
            value: 5
        },
        replynum: {
            type: Number,
            value: 0
        }
    },
    options: {
        multipleSlots: !0
    },
    data: {
        slotChildren: 0,
        reduceRely: !1
    },
    methods: {
        replyComment: function() {
            console.log(" =========== 点击一级评论 =============");
            var e = {
                replyName: this.data.nickname,
                type: "reply",
                placeholder: "请输入你的回复吧",
                index: this.data.index,
                childIndex: 0,
                content: this.data.content.slice(0, 10) + "..."
            };
            this.triggerEvent("showCOMInput", e);
        },
        getRely: function() {
            this.data.reduceRely ? this.setData({
                reduceRely: !1
            }) : (this.setData({
                slotChildren: this.data.slotChildren + this.data.page
            }), this.triggerEvent("getRely", {
                index: this.data.index
            }));
        },
        packUPRely: function() {
            this.setData({
                reduceRely: !0
            });
        }
    }
});